<?php
class NewCultivateWatchAction extends SzAbstractAction {
    protected $paramTypes = array(
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_STRING,
    );

    /**
     * @param $userId
     * @param $reqTime
     * @return SzResponse
     */
    public function execute($userId, $flowerIds) {
        $flowerIds = explode('_',$flowerIds);
        return $this->buildResponse(
            NewCultivateService::get()->watch($userId,$flowerIds)
        );
    }
}